package engine.newUi
{
	import engine.ui.UIManage;
	import engine.ui.lite.BaseUI;
	
	import flash.events.Event;
	
	import newx.com.control.text.NxText;
	import newx.com.control.window.NxWindowEvent;

	/**
	 *跨服战  规则 
	 * @author yanghr
	 * 
	 * 即使一段代码只有三行，也总有一天需要去维护他
	 * 
	 */	
	public class StrideRuleUI extends BaseUI
	{
		public var maintext:NxText;
		private static var _self:StrideRuleUI;
		public static function getInstance():StrideRuleUI
		{
			if(_self==null)
			{
				_self=new StrideRuleUI();
				UIManage.getInstance().initUI(_self,"StrideRuleUI");
			}
			return _self;
		}
		public function StrideRuleUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		override protected function BeforeShow():void
		{
			windowBG.addEventListener(NxWindowEvent.WINDOW_CLOSE,close);
		}
		private	function close(e:Event):void
		{
			hide();
		}
	}
}